{extend  name="manage@public/layout" /}
{block name="style"}
<style>
.row .m-b{width: 40%;float:left;margin-left: 10%;margin-bottom: 10px;}
.row .m-p{width: 40%;float:left;margin-right: 10%;margin-bottom: 10px;}
.row .input-group span{background:#e7eaec;width: 100px;text-align: right;}
.row .input-group input{background:white;}
</style>
{/block}
{block name="content"}
<body class="gray-bg">
    <div class="wrapper wrapper-content animated fadeInRight">
        <div class="row">
            <div class="input-group m-b">
                <span class="input-group-addon">ID</span><input  readonly type="text" value="{$info.id}" class="form-control"> 
            </div>
            <div class="input-group m-p">
                <span class="input-group-addon">商户号</span><input readonly type="text" value="{$info.mch_id}" class="form-control"> 
            </div>
            <div class="input-group m-b">
                <span class="input-group-addon">商户单号</span><input readonly type="text" value="{$info.out_trade_no}" class="form-control"> 
            </div>
            <div class="input-group m-p">
                <span class="input-group-addon">系统单号</span><input readonly type="text" value="{$info.systen_no}" class="form-control"> 
            </div>
            <div class="input-group m-b">
                <span class="input-group-addon">渠道名称</span><input readonly type="text" value="{:\\app\\model\\Channel::payment_name($info.channel_id)}" class="form-control"> 
            </div>
            <div class="input-group m-p">
                <span class="input-group-addon">支付类型</span><input readonly type="text" value="{:\\app\\model\\Channel::paymentType($info.pay_code)}" class="form-control"> 
            </div>
            <div class="input-group m-b">
                <span class="input-group-addon">下单金额</span><input readonly type="text" value="{$info.amount|abs}" class="form-control"> 
            </div>
            <div class="input-group m-p">
                <span class="input-group-addon">实际支付</span><input style="color: red;" readonly type="text" value="{$info.actual_amount|abs}" class="form-control"> 
            </div>
            <div class="input-group m-b">
                <span class="input-group-addon">成本费率</span><input readonly type="text" value="{$info.cost_rate|abs}" class="form-control"> 
            </div>
            <div class="input-group m-p">
                <span class="input-group-addon">运营费率</span><input style="font-weight: 900;color: red;" readonly type="text" value="{$info.run_rate|abs}" class="form-control"> 
            </div>
            <div class="input-group m-b">
                <span class="input-group-addon">手续费</span><input readonly type="text" value="{$info.total_fee|abs}" class="form-control"> 
            </div>
            <div class="input-group m-p">
                <span class="input-group-addon">商户结算</span><input readonly type="text" value="{eq name='info.pay_status' value='2'}{$info.settle|abs}{else/}--{/eq}" class="form-control"> 
            </div>
            <div class="input-group m-b">
                <span class="input-group-addon">代理费率</span><input readonly type="text" value="{$info.agent_rate|abs|default=''}" class="form-control"> 
            </div>
            <div class="input-group m-p">
                <span class="input-group-addon">代理结算</span><input readonly type="text" value="{eq name='info.pay_status' value='2'}{$info.agent_amount|abs|default='0'}{else/}--{/eq}" class="form-control"> 
            </div>
            <div class="input-group m-b">
                <span class="input-group-addon">上游结算</span><input readonly type="text" value="{eq name='info.pay_status' value='2'}{$info.upstream_settle|abs}{else/}0{/eq}" class="form-control"> 
            </div>
            <div class="input-group m-p">
                <span class="input-group-addon">平台收益</span><input readonly type="text" value="{eq name='info.pay_status' value='2'}{$info.Platform|abs}{else/}--{/eq}" class="form-control"> 
            </div>
            <div class="input-group m-b">
                <span class="input-group-addon">订单状态</span>
                {switch info.pay_status }
                {case 2 }<input style="color: #20c134;" readonly type="text" value="已支付" class="form-control"> {/case}
                {case 3}<input style="color: silver;" readonly type="text" value="已关闭" class="form-control">{/case}
                {default /}<input style="color: red;" readonly type="text" value="待支付" class="form-control">
                {/switch} 
            </div>
            <div class="input-group m-p">
                <span class="input-group-addon">回调状态</span>
                {eq name="info.notice" value='1'}
                {eq name="info.pay_status" value='2'}
                <input readonly style="color: red;" type="text" value="未回调" class="form-control"> 
                {else/}<input readonly  type="text" value="" class="form-control"> {/eq}
                {else/}
                <input readonly style="color: #20c134;" type="text" value="已回调" class="form-control">
                {/eq}
            </div>
            <div class="input-group m-b">
                <span class="input-group-addon">创建时间</span><input readonly type="text" value="{$info.create_time}" class="form-control"> 
            </div>
            <div class="input-group m-p">
                <span class="input-group-addon">支付时间</span><input readonly type="text" value="{$info.pay_time}" class="form-control"> 
            </div>
            <div class="input-group m-b">
                <span class="input-group-addon">三方单号</span><input readonly type="text" value="{$info.transaction_no}" class="form-control"> 
            </div>
            <div class="input-group m-p">
                <span class="input-group-addon">备注</span><input style="color:red;" readonly type="text" value="{$info.remark}" class="form-control"> 
            </div>
            <div class="input-group m-b" style="width:80% !important;">
                <span class="input-group-addon">异步回调</span><input readonly type="text" value="{$info.callback_url}" class="form-control"> 
            </div>
            <div class="input-group m-b" style="width:80% !important;">
                <span class="input-group-addon">同步跳转</span><input readonly type="text" value="{$info.return_url}" class="form-control"> 
            </div>
        </div>
    </div>
    {/block}